# -*- coding: utf-8 -*-
from wtforms import Form, IntegerField, StringField, validators


class login(Form):
    username = StringField('username', [validators.DataRequired()])
    password = StringField('password', [validators.DataRequired()])
    new_password = StringField('new_password')

class menu(Form):
    data = StringField('data', [validators.DataRequired()])

class babyrelatelist(Form):
    relate = StringField('relate', [validators.DataRequired()])
    value = StringField('value', [validators.DataRequired()])

class emit(Form):
    imei = StringField('imei', [validators.DataRequired()])
    instruct = StringField('instruct', [validators.DataRequired()])
    params = StringField('params')

class getlist(Form):
    page = IntegerField('page')
    num = IntegerField('num', [validators.DataRequired()])

class userbaby(Form):
    imei = StringField('imei', [validators.DataRequired()])
    userid = IntegerField('userid', [validators.DataRequired()])

